cd $tmpdir
	
# Downloading readline source
if [ ! -f "$readline" ]; then
	echo "Downloading readline sources..."
	wget $mainmirror/$readline
	tar -xf $readline
fi

cd $readlinesrcdir
	
sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install

./configure --prefix=$freondir --disable-static --docdir=$freondir/share/doc/readline-8.1

make SHLIB_LIBS="-L/tools/lib -lncursesw" -j$corecount

make SHLIB_LIBS="-L/tools/lib -lncursesw" install

chmod -v u+w /freon/lib/lib{readline,history}.so.*

cd ..
